package graph.visitors;

import java.util.LinkedList;
import java.util.List;

import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.Assignment;

public class AssignmentVisitor extends ASTVisitor {
	
	private List<Assignment> _assignments = new LinkedList<Assignment>();
	
	@Override
	public boolean visit(Assignment node) {
		_assignments.add(node);
		return super.visit(node);
	}
	
	public List<Assignment> getAssignments() {
		return _assignments;
	}

}
